package com.ruoyi.loan.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 客户需求对象 t_customer_need
 *
 * @author ruoyi
 * @date 2023-03-20
 */
@Getter
@Setter
@TableName("t_customer_need")
public class CustomerNeed {

    private static final long serialVersionUID = 1L;

    /**
     * 需求id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 客户id
     */
    @Excel(name = "客户id")
    private Long customerInfoId;

    /**
     * 金额（万）
     */
    @Excel(name = "金额", readConverterExp = "万=")
    private BigDecimal amount;

    /**
     * 贷款用途
     */
    @Excel(name = "贷款用途")
    private String loanUse;

    /**
     * 贷款备注
     */
    @Excel(name = "贷款备注")
    private String loanRemark;

    /**
     * 期数
     */
    @Excel(name = "期数")
    private Long timeLimit;

    /**
     * 用款时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "用款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date serviceTime;

    /**
     * 放款机构
     */
    @Excel(name = "放款机构")
    private String lendingInstitution;

    /**
     * 还款方式 1月 2季度
     */
    @Excel(name = "还款方式 1月 2季度")
    private Long repaymentType;

    /**
     * 还款月
     */
    @Excel(name = "还款月")
    private Long repaymentMonth;

    /**
     * 还款日
     */
    @Excel(name = "还款日")
    private Long repaymentDay;

    /**
     * 还款金额
     */
    @Excel(name = "还款金额")
    private BigDecimal repaymentAmount;

    /**
     * 截止日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deadline;

    /**
     * 创建人
     */
    @Excel(name = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改人
     */
    @Excel(name = "修改人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    /**
     * 修改时间
     */
    @Excel(name = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
